package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dataTransmit.DishDTO;
import com.sky.dataTransmit.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.view.DishVO;

import java.util.List;

public interface DishService extends IService<Dish> {
    void insert(DishDTO dishDTO);

    PageResult getList(DishPageQueryDTO dishPageQueryDTO);

    void delete(List<Long> ids);

    DishVO getById(Long id);

    void update(DishDTO dishDTO);

    void updateStatus(Integer status, Long id);

    List<Dish> getByCategoryId(Long id);

    List<DishVO> listWithFlavor(Long categoryId);
}
